package com.itheima.service.impl;

import com.itheima.mapper.GameMapper;
import com.itheima.pojo.Game;
import com.itheima.service.GameService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Name GameServiceImpl
 * @Author BaiXin
 * @Date 2022-10-21 20:58
 */
@Service
public class GameServiceImpl implements GameService {

    @Autowired
    private GameMapper gameMapper;

    @Override
    public List<Game> findAll() {
        return gameMapper.findAll();
    }

    @Override
    public void save(Game game) {
        gameMapper.save(game);
    }

    @Override
    public void update(Game game) {
        gameMapper.update(game);
    }

    @Override
    public void deleteById(Integer id) {
        gameMapper.deleteById(id);
    }
}
